# -- coding: utf-8 --
# @time : 2023/5/4
# @author : 周梦泽
# @file : CacheUtil.py
# @software: pycharm
from autoTask.taobao.sycm.gjc.gjc_hyc_robot.CacheTable import CacheTable


def init_cache(params):
    """
    初始化缓存,将参数初始化,并返回一个缓存对象

    :param params:
    :return:
    """
    search_content = params.get('searchContent')
    date_cycle = params.get('dateCycle')
    data_word = params.get('dataWord')
    table_topic_list = params.get('tableTopic')

    cache_table = CacheTable(search_content, data_word, date_cycle, table_topic_list)
    return cache_table
